home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Mac Game Programming Gurus
/
TricksOfTheMacGameProgrammingGurus.iso
/
More Source
/
C⁄C++
/
Peter's Final Project
/
sys
/
timer.h
< prev
Wrap
Text File
|
1995-05-09
|
1KB
|
50 lines
/*
* Peter's Final Project -- A texture mapping demonstration
* © 1995, Peter Mattis
*
* E-mail:
* petm@soda.csua.berkeley.edu
*
* Snail-mail:
* Peter Mattis
* 557 Fort Laramie Dr.
* Sunnyvale, CA 94087
*
* Avaible from:
* http://www.csua.berkeley.edu/~petm/final.html
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __TIMER_H__
#define __TIMER_H__
typedef struct _TIMER *TIMER;
struct _TIMER {
short activated;
long start;
long end;
};
TIMER make_timer (void);
void free_timer (TIMER);
void timer_start (TIMER);
void timer_stop (TIMER);
void timer_reset (TIMER);
float timer_elapsed (TIMER);
#endif /* __TIMER_H__ */